package com.xiaoq.sites.service.impl;

import com.xiaoq.sites.entity.InterDicEntity;
import com.xiaoq.sites.repository.IInterDicRepository;
import com.xiaoq.sites.service.IInterDicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InterDicServiceImpl implements IInterDicService {
	
	@Autowired
	private IInterDicRepository interDicRepository;

	@Override
	public boolean save(InterDicEntity interDicEntity) {
		return interDicRepository.save(interDicEntity);
	}

	@Override
	public boolean updateById(InterDicEntity interDicEntity) {
		return interDicRepository.updateById(interDicEntity);
	}

	@Override
	public List<InterDicEntity> getAllInterDicList(Integer dicType, List<String> dicIdList) {
		return interDicRepository.getAllInterDicList(dicType, dicIdList);
	}
}
